[GtkComboBoxText] Add checks for id-column/entry-text-column >= 0
authorMilan Bouchet-Valat <nalimilan@club.fr>
Sat, 11 Dec 2010 14:12:47 +0000 (15:12 +0100)
committerMilan Bouchet-Valat <nalimilan@club.fr>
Sat, 11 Dec 2010 18:10:51 +0000 (19:10 +0100)
commit029083454b090eec50b894ba29c8e1e00801b6b6
tree973226a0e387addcbc2a58594fa2f57526216556
parent3b90d877b7f40de3c04cfa9df80f823369d750e8
[GtkComboBoxText] Add checks for id-column/entry-text-column >= 0

If the GtkComboBoxText doesn't have id-column or entry-text-column
set for some reason (value -1), better warn and return. Else, unrelated
assertions fail, and warnings from gtk_tree_model_get_column_type()
are printed, which are not really obvious.

https://bugzilla.gnome.org/show_bug.cgi?id=637018
gtk/gtkcomboboxtext.c